<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("contextPath",request.getContextPath());
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员搜索</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<style>
	.search{
			position:absolute;
			top:200px;
			left:450px;
			margin-left:auto;
			margin-right:auto;
		}
		.typelist{
			position:absolute;
			top:300px;
			left:400px;
			margin-left:auto;
			margin-right:auto;
			width:450px;
		}
	</style>
</head>

<body>
	<a href="adminHome">首页</a>
	<div class="search">
   		<form id="searchBooks" action="${contextPath}/book/bookListByKeyWordAdmin" method="post">
   			<input id="keyword" name="keyword" type="text" style="width:260px;height:30px"/>
   			<button id="submit" type="submit" style="width:120px;height:30px">搜索一下</button>
   		</form>
   	</div>
   	<div class="typelist">
   		<c:forEach items="${types}" var="type">
   			<a href="${contextPath}/book/bookListByTypeAdmin/${type.id}" style="text-decoration : none ">${type.name}/</a>
   		</c:forEach>
   		<a href="book/booksList">所有书籍</a>
   	</div>
</body>	
</html>